<?php
namespace Service\Controller;
use Think\Controller;
class ShoplevelsController extends Controller {
	public function index(){
		
		$levels[]=Array("label"=>"1心","value"=>10,"icon"=>'http://pics.taobaocdn.com/newrank/b_red_1.gif');
		$levels[]=Array("label"=>"2心","value"=>40,"icon"=>'http://pics.taobaocdn.com/newrank/b_red_2.gif');
		$levels[]=Array("label"=>"3心","value"=>90,"icon"=>'http://pics.taobaocdn.com/newrank/b_red_3.gif');
		$levels[]=Array("label"=>"4心","value"=>150,"icon"=>'http://pics.taobaocdn.com/newrank/b_red_4.gif');
		$levels[]=Array("label"=>"5心","value"=>250,"icon"=>'http://pics.taobaocdn.com/newrank/b_red_5.gif');
		$levels[]=Array("label"=>"1钻","value"=>500,"icon"=>'http://pics.taobaocdn.com/newrank/b_blue_1.gif');
		$levels[]=Array("label"=>"2钻","value"=>1000,"icon"=>'http://pics.taobaocdn.com/newrank/b_blue_2.gif');
		$levels[]=Array("label"=>"3钻","value"=>2000,"icon"=>'http://pics.taobaocdn.com/newrank/b_blue_3.gif');
		$levels[]=Array("label"=>"4钻","value"=>5000,"icon"=>'http://pics.taobaocdn.com/newrank/b_blue_4.gif');
		$levels[]=Array("label"=>"5钻","value"=>10000,"icon"=>'http://pics.taobaocdn.com/newrank/b_blue_5.gif');
		$levels[]=Array("label"=>"1皇冠","value"=>20000,"icon"=>'http://pics.taobaocdn.com/newrank/b_cap_1.gif');
		$levels[]=Array("label"=>"2皇冠","value"=>50000,"icon"=>'http://pics.taobaocdn.com/newrank/b_cap_2.gif');
		$levels[]=Array("label"=>"3皇冠","value"=>100000,"icon"=>'http://pics.taobaocdn.com/newrank/b_cap_3.gif');
		$levels[]=Array("label"=>"4皇冠","value"=>200000,"icon"=>'http://pics.taobaocdn.com/newrank/b_cap_4.gif');
		$levels[]=Array("label"=>"5皇冠","value"=>500000,"icon"=>'http://pics.taobaocdn.com/newrank/b_cap_5.gif');
		$levels[]=Array("label"=>"1金冠","value"=>1000000,"icon"=>'http://pics.taobaocdn.com/newrank/b_crown_1.gif');
		$levels[]=Array("label"=>"2金冠","value"=>2000000,"icon"=>'http://pics.taobaocdn.com/newrank/b_crown_2.gif');
		$levels[]=Array("label"=>"3金冠","value"=>5000000,"icon"=>'http://pics.taobaocdn.com/newrank/b_crown_3.gif');
		$levels[]=Array("label"=>"4金冠","value"=>10000000,"icon"=>'http://pics.taobaocdn.com/newrank/b_crown_4.gif');
		$levels[]=Array("label"=>"5金冠","value"=>10000001,"icon"=>'http://pics.taobaocdn.com/newrank/b_crown_4.gif');

		$data["code"]=200;
		$data["data"]=$levels;
		
		header('Access-Control-Allow-Headers:x-requested-with,content-type');
		header("Access-Control-Allow-Origin: * ");
		$this->ajaxReturn(json_encode($data));
	}
}